/*
 *英才会硕信息科技有限公司拥有本软件的版权，拥有本软件版权2025   并保留所有权利。
 *Copyright 2021,YCHS Information&Science Technology Co.,Ltd,
 *All rights reserved.
 */
package com.ychs.lawyerback01.service;

import com.ychs.lawyerback01.pojo.UploadEntity;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author xuehongjin
 * @version 1.0
 * @date 2025/8/19
 */
public interface DocumentService {


    UploadEntity uploadDocument(MultipartFile file, String seekerName) throws IOException;


    List<UploadEntity> getPendingDocuments(String fileName, String seekerName, String status);

    UploadEntity approveDocument(Long id, String approvalBy);

    UploadEntity rejectDocument(Long id, String approvalBy, String comments);


    UploadEntity getDocument(Long id);



    Map<String, Object> getDocumentsByPage(int page, int pageSize, String fileName, String seekerName, String status);


    List<UploadEntity> getPendingDocuments();


    Page<UploadEntity> getPendingDocuments(int page, int pageSize, String fileName, String seekerName, String status);
}